package com.curso.session8.constructores;

public class Son extends Father {

	private int  age ;
	private char gender;
	private static Byte unResponsabilityLevel;	
	
	static {
		System.out.println("Bloque de Inicializacion Statico");
		if (unResponsabilityLevel == null){
			unResponsabilityLevel= 1;
			
		}
	}
	{
		System.out.println("BLoque de inicializacion");
		if (name == null){
			name = "Default Name" ;	
		}
	}
	
	
	public Son(){
		super();
		System.out.println("Constructor de Son");
	}


	public Son(int age, char gender, String name) {
		this();
		System.out.println("Constructor this de Son");
		this.age = age;
		this.gender = gender;
		this.name = name;
	}
	
	public Son(int age,  String name, boolean isWomen) {
		this(age, isWomen ? 'F':'M',name);
		System.out.println("Constructor this de Son");
		this.age = age;
		this.gender = gender;
		this.name = name;
	}


	@Override
	public String toString() {
		return "Son [age=" + age + ", gender=" + gender + ", name=" + name
				+ "]";
	}
	
	
	
}
